<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
<script type="text/javascript" src="kindeditor.js"></script>
<script type="text/javascript" src="plugins/filemanager/filemanager.js"></script>
<script type="text/javascript" src="plugins/multiimage/multiimage.js"></script>
<link rel="stylesheet" href="themes/simple/simple.css" />
<script>
	KindEditor.ready(function(K) {
		var editor1 = K.create('textarea[name="content1"]', {
			items : [ 'filesystem','image','insertfile','multiimage'],
			cssPath : 'css/prettify.css',
			uploadJson : '../../file/uploadFile',
			fileManagerJson : '../../file/fileManager',
			createDirJson : '../../file/createDir',
			allowFileManager : true,
			afterCreate : function() {
				var self = this;
				K.ctrl(document, 13, function() {
					self.sync();
					document.forms['example'].submit();
				});
				K.ctrl(self.edit.doc, 13, function() {
					self.sync();
					document.forms['example'].submit();
				});
			}
		});
	});
</script>
</head>
<body>
	<form name="example" method="post" action="demo.jsp">
		<textarea name="content1" cols="100" rows="8"
			style="width: 700px; height: 200px; visibility: hidden;"><%=htmlspecialchars(htmlData)%></textarea>
		<br /> <input type="submit" name="button" value="提交内容" /> (提交快捷键:
		Ctrl + Enter)
	</form>
</body>
</html>